/**
 * api文件
 * @Author: yd_renyuanyu
 * @Date: 2021-11-12 10:48:10
 * @Version: 1.0.0
 */
import request from '@/lib/request';

/* ********** Edition ********** */
/**
 * --
 * @tips Edition
 * @tags [Edition]
 * @param {string} id
  */
export function api_GET_EditionsId (id) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/saas/editions/${id}`,
    method: 'get'
  });
}
/**
 * --
 * @tips Edition
 * @tags [Edition]
 * @param {string} id
 * @param { object } aDataBody 参数 [#/components/schemas/Volo.Saas.Host.Dtos.EditionUpdateDto]
  */
export function api_PUT_EditionsId (id, aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/saas/editions/${id}`,
    method: 'put',
    data: aDataBody
  });
}
/**
 * --
 * @tips Edition
 * @tags [Edition]
 * @param {string} id
  */
export function api_DELETE_EditionsId (id) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/saas/editions/${id}`,
    method: 'delete'
  });
}
/**
 * --
 * @tips Edition
 * @tags [Edition]
 * @param { object } aDataQuery 参数 [Api_GET_EditionsQO]
  */
export function api_GET_Editions (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/saas/editions',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * --
 * @tips Edition
 * @tags [Edition]
 * @param { object } aDataBody 参数 [#/components/schemas/Volo.Saas.Host.Dtos.EditionCreateDto]
  */
export function api_POST_Editions (aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/saas/editions',
    method: 'post',
    data: aDataBody
  });
}
/**
 * --
 * @tips Edition
 * @tags [Edition]
  */
export function api_GET_EditionsStatisticsUsageStatistic () {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/saas/editions/statistics/usage-statistic',
    method: 'get'
  });
}
/* ********** Tenant ********** */
/**
 * --
 * @tips Tenant
 * @tags [Tenant]
 * @param {string} id
  */
export function api_GET_TenantsId (id) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/saas/tenants/${id}`,
    method: 'get'
  });
}
/**
 * --
 * @tips Tenant
 * @tags [Tenant]
 * @param {string} id
 * @param { object } aDataBody 参数 [#/components/schemas/Volo.Saas.Host.Dtos.SaasTenantUpdateDto]
  */
export function api_PUT_TenantsId (id, aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/saas/tenants/${id}`,
    method: 'put',
    data: aDataBody
  });
}
/**
 * --
 * @tips Tenant
 * @tags [Tenant]
 * @param {string} id
  */
export function api_DELETE_TenantsId (id) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/saas/tenants/${id}`,
    method: 'delete'
  });
}
/**
 * --
 * @tips Tenant
 * @tags [Tenant]
 * @param { object } aDataQuery 参数 [Api_GET_TenantsQO]
  */
export function api_GET_Tenants (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/saas/tenants',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * --
 * @tips Tenant
 * @tags [Tenant]
 * @param { object } aDataBody 参数 [#/components/schemas/Volo.Saas.Host.Dtos.SaasTenantCreateDto]
  */
export function api_POST_Tenants (aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/saas/tenants',
    method: 'post',
    data: aDataBody
  });
}
